[Python] TypeSpec migration for azure-mgmt-containerinstance#47197
Draft
msyyc wants to merge 4 commits into
Draft
[Python] TypeSpec migration for azure-mgmt-containerinstance#47197msyyc wants to merge 4 commits into
msyyc wants to merge 4 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TypeSpec migration: azure-mgmt-containerinstance
Spec source
2025-09-01(default tag:package-2025-09-01)Breaking-change classification summary
ContainerGroup,ContainerGroupProperties,InitContainerDefinition,NGroupPatch)ListResultContainerGroup,NGroupsSkusList, return-type changes onContainerGroupsOperations.list/list_by_resource_groupListResultContainerGroupPropertiesNGroupSkus(no corresponding model in new SDK; operation surface removed)ContainersOperations.list_logsparameterstail,timestampsContainerGroupProvisioningStateMitigations applied (in spec PR #43583)
@@access(ContainerGroupProvisioningState, Access.public, "python");added toclient.tsp— restores theContainerGroupProvisioningStateenum on the Python public surface (it already existed inmodels.tspbut was only exposed for C#).Accepted breaking changes that will remain
These are the standard, documented outcomes of the Swagger -> TypeSpec migration for ARM Python SDKs:
ContainerGroup,ContainerGroupProperties,InitContainerDefinition,NGroupPatch: flattened sub-properties are no longer hoisted onto the top-level model. Users must now access them via the new.propertiessub-object (REST hierarchy preservation, hybrid_model_migration guide).ListResultContainerGroup,ListResultContainerGroupProperties,NGroupsSkusList); list operations now returnItemPaged[ContainerGroup]etc. directly.NGroupSkusmodel removed (no equivalent model in the migrated surface).ContainersOperations.list_logs:tailandtimestampsare now keyword-only parameters.After spec PR #43583 merges, regenerate the SDK to confirm
ContainerGroupProvisioningStateis restored and remaining changes match this report.